package com.zl.mapper;

import com.zl.model.RoleDto;
import com.zl.model.UserDto;
import com.zl.model.entity.Permission;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * RoleMapper
 * @author zhoulang
 * @date 2018/8/31 14:42
 */
public interface RoleMapper extends Mapper<RoleDto> {
    /**
     * 根据User查询Role
     * @param userDto
     * @return java.util.List<com.zl.model.RoleDto>
     * @author zhoulang
     * @date 2018/8/31 11:30
     */
    List<RoleDto> findRoleByUser(UserDto userDto);

    List<RoleDto> selectByName(String name);

    void deletes(int[] id);

    List<Permission> menuList(int id);
}